import random as r
import numpy as np

#test=[1,2,3,4,5,6,7,8,9]
test=[1,2,3]

#test2={"alpha":5, "beta":2, "gama":1}


print filter(lambda x: x % 3 == 0, test)
# [3, 6, 9]

print map(lambda x: x * 20, test)
# [20, 40, 60, 80, 100, 120, 140, 160, 180]

print reduce(lambda x, y: x + y, test)
# 45